<template>
    <a-button type="primary"  @click="toLookInfo">查看登录信息</a-button>
    <a-button  @click="toLoginOut">注销</a-button>
</template>

<script setup>
import { info } from '@/api/user';
import store from '@/store';
const toLookInfo = () => {
   console.log(info());
}
const toLoginOut = () => {
   store.dispatch('LoginOut');
}
</script>

<style lang="scss" scoped>

</style>
